package com.example.neusoft.fragmenttest;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

/**
 * Created by Neusoft on 2017/4/9.
 */

public class Fragment1 extends Fragment {
    private  TextView tvinfo;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
       View view=inflater.inflate(R.layout.fragment1,container,false);
        tvinfo=(TextView)view.findViewById(R.id.textView8);
        tvinfo.setText("微信");
        Toast.makeText(getActivity(), "微信", Toast.LENGTH_SHORT).show();
        return view;
    }
}
